// JavaScript Document

//Script for Soot Seekers
//Written by Kyle Finley Apr 2011

/*$(document).ready(function(){
						   
	$('#nav ul li:last-child').css({'padding-right': 0});	
	
	$('div.post:first-child').css({'margin-top': 0});
	
	//PAGE JUMPS
	
	//anchors for jumping using nav on left-hand side
	$('#whoAnchor').click(function(){
    	var new_position = $('#who').offset();
		window.scrollTo(0, 415);
		return false;
	});
	
	$('#servicesAnchor').click(function(){
    	var new_position = $('#services').offset();
		window.scrollTo(0, 660);
		return false;
	});
	
	$('#productsAnchor').click(function(){
    	var new_position = $('#products').offset();
		window.scrollTo(0, 905);
		return false;
	});
	
	$('#portfolioAnchor').click(function(){
    	var new_position = $('#products').offset();
		window.scrollTo(0, 1150);
		return false;
	});
	
	$('#faqAnchor').click(function(){
    	var new_position = $('#faq').offset();
		window.scrollTo(0, 1395);
		return false;
	});
	
	$('#contactUsAnchor').click(function(){
    	var new_position = $('#contactUs').offset();
		window.scrollTo(0, 1640);
		return false;
	});
	
	//PICTURE SLIDER
	
	//hides all of the images
	$('#img2, #img3, #img4').css({'opacity': '0', 'left': '-1000'});
	
	//makes the first image in the ul visible
	$('#img1').addClass('onScreen');
	
	//slides the image off and new image on
	$('#right').click(function(){
		  $('.onScreen').animate({'left': '1000', 'opacity': 0}, 1500).removeClass('onScreen').next().addClass('onScreen');
		  $('.onScreen').animate({'left': '-100', 'opacity': 0}, 1500);
	});
	
	//PIC COVER
	
	//moves the pic info bar to the left to prep for sliding
	$('#cover').css({'left': '-222px'});
	
	var ease = 'linear'
	
	//function for what happens when clicking on the slider arrow to open pic cover
	$('#arrow').click(function(){
		$('#cover').animate({'left': '0px'}, 500);
		$('#arrow').fadeOut(1250, ease).css('visibility', 'hidden');
		$('#arrow2').fadeIn(1050, ease).css('visibility', 'visible');
	});
	
	//function for what happens when clicking on the arrow to close pic cover	
	$('#arrow2').click(function(){
		$('#cover').animate({'left': '-222px'}, 500);
		$('#arrow2').fadeOut(1250, ease).css('visibility', 'hidden');
		$('#arrow').fadeIn(1050, ease).css('visibility', 'visible');
	});
	
	//SERVICES AND DESCRIPTIONS
	
	//gives the description initial state of hidden
	$('.description').hide();
	
	//for toggling the descriptions on and off individually
	$('#serviceList>li').click(function(){
		
		var serviceID = $(this).attr('id');
		
		$(this).toggleClass('active');
		
		var descriptionID = serviceID.replace('service', 'description');
				
		console.log(descriptionID);
		
		$('#' + descriptionID).slideToggle(400).toggleClass('active');
		
	});
	
	//for toggling the descriptions on and off as a group
	$('#ceBtn').click(function(){
		
		var services = $('#serviceList>li');
		var description = $('.description');
		
		if(description.css('display', 'none')) {
			description.addClass('hidden');
			services.removeClass('active');
			}
			else if(description.hasClass('all')) {};
			
		if(description.hasClass('all')) {	
			description.slideToggle(400).addClass('all');
			services.toggleClass('active');
			};
		
	});

});

$('#serviceList li ul').hide();
	
	$('#serviceList li').click(function(){
		
		$('ul',this).slideToggle(400);
		
	});
*/